<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
<form th:action="@{/register}" method="post">
    <div><label> 学号 : <input type="text" name="stuId" required autofocus/> </label></div>
    <div><label> 姓名 : <input type="text" name="name" required autofocus/> </label></div>
    <div><label> 年级 : <input type="text" name="grade" required autofocus/> </label></div>
    <div><label> 专业 : <input type="text" name="major" required autofocus/> </label></div>
    <div><label> 学院 : <input type="text" name="academy" required autofocus/> </label></div>
    <div><label> 密码 : <input type="password" name="pwd" required autofocus/> </label></div>
    <div><input type="submit" value="register"/></div>
    <div th:if="${param.err}">此学号已被注册</div>
</form>
</body>
</html>
